/**
 * Created by Administrator on 2018/8/25 0025.
 */
$(function () {

    /*公共的checkbox组件*/
    $(document).on("click",".self-checkbox",function () {
        if($(this).children("i.fa-check-square").length>0){
            $(this).attr("data-checked","false").children("i").removeClass("fa-check-square").addClass("fa-square-o");
        }else{
            $(this).attr("data-checked","true").children("i").removeClass("fa-square-o").addClass("fa-check-square");
        }
    })

    /*公共的checkbox组件*/
    $(document).on("click",".self-radio",function () {
        $(this).attr("data-radio","true").children("i").removeClass("fa-circle-o").addClass("fa-dot-circle-o").end().siblings().attr("data-radio","false").children("i").removeClass("fa-dot-circle-o").addClass("fa-circle-o").children("i");
    })



})
